package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.DataRule;
import com.ruoyi.system.mapper.DataRuleMapper;
import com.ruoyi.system.service.DataModuleService;
import com.ruoyi.system.service.DataRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author tang ao long
 * @Date 2020-08-25 14:45
 * @Version 1.0
 */
@Service
public class DataRuleServiceImpl implements DataRuleService {

    @Autowired
    private DataRuleMapper dataRuleMapper;


    /**
     * 根据模型ID查询数据格式数据
     *
     * @param moduleId 模型ID
     * @return 返回查询出的list
     */
    @Override
    public List<DataRule> selectDataRuleInfoList(String moduleId) {
        return dataRuleMapper.selectDataRuleInfoList(moduleId);
    }
}
